#include <iostream>
#include <thread>
using namespace std;

void threadFunc(int x){
    cout << "x = " << x << endl;
    cout << "thread id = " << this_thread::get_id() << endl;
}

int main() {
    /* 函数引用 */
    using pFunc = void(&)(int);
    pFunc f = threadFunc;

    thread th(f, 701);
    th.join();

    return 0;
}
